﻿using System.Data.Entity.ModelConfiguration;
using DomainModel;

namespace DataAccess
{
    class PollConfiguration : EntityTypeConfiguration<Poll>
    {
        public PollConfiguration()
        {
            HasMany(p => p.Questions).WithRequired(p => p.Poll);
        }
    }
}
